# -*- coding: utf-8 -*-
# author: sixmillions
# date: 2022/3/24

# 成员运算符，判断在一个不在另一个里面
# in   not in

# in
a = [1, 2, 3]
b = (4, 5, 6)
c = {'key1': 111, 'key2': 222}
print(2 in a)  # True
print(8 in b)  # False
print('key1' in c)  # True
print(111 in c)  # False

# not in
print(2 not in a)  # False
print(8 not in b)  # True
print('key1' not in c)  # False
print(111 not in c)  # True
